package cn.itsource.ymjs.web.controller;

import cn.itsource.ymjs.dto.CourseVideoDTO;
import cn.itsource.ymjs.entity.CourseType;
import cn.itsource.ymjs.entity.CourseVideo;
import cn.itsource.ymjs.entity.FitnessCourse;
import cn.itsource.ymjs.query.CourseQuery;
import cn.itsource.ymjs.result.JSONResult;
import cn.itsource.ymjs.service.ICourseTypeService;
import cn.itsource.ymjs.service.ICourseVideoService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author SuperJellyfish
 * @description TODO
 * @date 2022/2/3 16:25
 */
@RestController
@RequestMapping("/courseVideo")
@Api
public class CourseVideoController extends BaseController<CourseVideo, CourseQuery>{


    @PostMapping("/pageList")
    public JSONResult selectPage(@RequestBody CourseQuery courseQuery) {
        System.out.println(courseQuery);
        return super.selectForPage(courseQuery);
    }
}
